﻿<Window x:Class="TestRunner.TransitionTester"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:FluidKit.Controls;assembly=FluidKit"
        Title="TransitionContainer - FluidKit"
        Height="400"
        Width="600"
    >
  <Window.Resources>
    <Controls:SlideTransition x:Key="SlideTransition"/>
    <Controls:CubeTransition x:Key="CubeTransition"
                             Rotation="BottomToTop"/>
    <Controls:GenieTransition x:Key="GenieTransition"/>
  </Window.Resources>
  <DockPanel>
    <StackPanel DockPanel.Dock="Left"
                Width="200">
      <GroupBox Header="Genie">
        <StackPanel Orientation="Vertical">
          <RadioButton Content="Into Lamp"
                       x:Name="_intoLamp"
                       IsChecked="True"/>
          <RadioButton Content="Out of Lamp"
                       x:Name="_outOfLamp"/>
          <Button x:Name="_playGenie"
                  Content="Play"
                  HorizontalAlignment="Right"
                  Click="PlayTransition"/>
        </StackPanel>
      </GroupBox>

      <GroupBox Header="Cube"
                Margin="0,10,0,0">
        <StackPanel Orientation="Vertical">
          <RadioButton Content="Left to Right"
                       x:Name="_l2r"
                       IsChecked="True"/>
          <RadioButton Content="Right to Left"
                       x:Name="_r2l"/>
          <RadioButton Content="Top to Bottom"
                       x:Name="_t2b"/>
          <RadioButton Content="Bottom to Top"
                       x:Name="_b2t"/>
          <Button x:Name="_playCube"
                  Content="Play"
                  HorizontalAlignment="Right"
                  Click="PlayTransition"/>
        </StackPanel>
      </GroupBox>

      <GroupBox Header="Slide"
                Margin="0,10,0,0">
        <StackPanel Orientation="Vertical">
          <RadioButton Content="Left to Right"
                       x:Name="_slideL2R"
                       IsChecked="True"/>
          <RadioButton Content="Right to Left"
                       x:Name="_slideR2L"/>
          <Button x:Name="_playSlide"
                  Content="Play"
                  HorizontalAlignment="Right"
                  Click="PlayTransition"/>
        </StackPanel>
      </GroupBox>
    </StackPanel>

    <Controls:TransitionContainer x:Name="_transContainer"
                                  MouseLeftButtonDown="SwitchImage">
      <Image x:Name="_image1"
             Source="/Transition/Images/img1.jpg"
             Stretch="Fill"/>
      <Image x:Name="_image2"
             Source="/Transition/Images/img2.jpg"
             Stretch="Fill"/>
    </Controls:TransitionContainer>
  </DockPanel>
</Window>
